package br.com.ifinancas.modelo.entidade;

/**
 * 
 * @author Carlo
 *
 */

public class Despesas {

	private int idDespesas;
	private double oiRe;
	private double micro;
	private double iphone;
	private double escoladuda;
	private double acordoitau;
	private double net;
	
	
	
	public Despesas (double oiRe, double micro, double iphone, double escoladuda, double acordoitau, double net) {
		
		this.oiRe = oiRe;
		this.micro = micro;
		this.iphone = iphone;
		this.escoladuda = escoladuda;
		this.acordoitau = acordoitau;
		this.net = net;
	}
	
public Despesas (int idDespesas, double oiRe, double micro, double iphone, double escoladuda, double acordoitau, double net) {
		
		this.idDespesas = idDespesas;
		this.oiRe = oiRe;
		this.micro = micro;
		this.iphone = iphone;
		this.escoladuda = escoladuda;
		this.acordoitau = acordoitau;
		this.net = net;
	}
	

	public Despesas () {
		
	}

	public int getId() {
		return idDespesas;
	}
	
	public void setId (int id) {
		this.idDespesas = id;
	}
	
	public double getOiRe() {
		return oiRe;
	}


	public void setOiRe(double oiRe) {
		this.oiRe = oiRe;
	}

	public double getMicro() {
		return micro;
	}


	public void setMicro(double micro) {
		this.micro = micro;
	}


	public double getIphone() {
		return iphone;
	}


	public void setIphone(double iphone) {
		this.iphone = iphone;
	}
	
	public double getEscoladuda() {
		return escoladuda;
	}


	public void setEscoladuda(double escoladuda) {
		this.escoladuda = escoladuda;
	}


	public double getAcordoitau() {
		return acordoitau;
	}


	public void setAcordoitau(double acordoitau) {
		this.acordoitau = acordoitau;
	}


	public double getNet() {
		return net;
	}


	public void setNet(double net) {
		this.net = net;
	}

	@Override
	public String toString() {
		return "Despesas [id=" + idDespesas + ", oiRe=" + oiRe + ", micro=" + micro
				+ ", iphone=" + iphone + ", escoladuda=" + escoladuda
				+ ", acordoitau=" + acordoitau + ", net=" + net + "]";
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		long temp;
		temp = Double.doubleToLongBits(acordoitau);
		result = prime * result + (int) (temp ^ (temp >>> 32));
		temp = Double.doubleToLongBits(escoladuda);
		result = prime * result + (int) (temp ^ (temp >>> 32));
		result = prime * result + idDespesas;
		temp = Double.doubleToLongBits(iphone);
		result = prime * result + (int) (temp ^ (temp >>> 32));
		temp = Double.doubleToLongBits(micro);
		result = prime * result + (int) (temp ^ (temp >>> 32));
		temp = Double.doubleToLongBits(net);
		result = prime * result + (int) (temp ^ (temp >>> 32));
		temp = Double.doubleToLongBits(oiRe);
		result = prime * result + (int) (temp ^ (temp >>> 32));
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Despesas other = (Despesas) obj;
		if (Double.doubleToLongBits(acordoitau) != Double
				.doubleToLongBits(other.acordoitau))
			return false;
		if (Double.doubleToLongBits(escoladuda) != Double
				.doubleToLongBits(other.escoladuda))
			return false;
		if (idDespesas != other.idDespesas)
			return false;
		if (Double.doubleToLongBits(iphone) != Double
				.doubleToLongBits(other.iphone))
			return false;
		if (Double.doubleToLongBits(micro) != Double
				.doubleToLongBits(other.micro))
			return false;
		if (Double.doubleToLongBits(net) != Double.doubleToLongBits(other.net))
			return false;
		if (Double.doubleToLongBits(oiRe) != Double
				.doubleToLongBits(other.oiRe))
			return false;
		return true;
	}

		
}
